﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UIItemEditGrid.ascx.cs" 
Inherits="UILGestion.Admin.UILocalizacion.UIItemEditGrid" %>



 <%@ Register assembly="WebLib" namespace="WebLib" tagprefix="lib" %>


<input id="idLocalizacion" type="hidden" runat="server"/>


<asp:UpdatePanel ID="GridUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>



 <asp:GridView ID="itemGridView" Runat="Server" 
                SkinID="GridView"
                DataKeyNames="idInternal" 
                onrowcancelingedit="CancelItem" 
                onrowediting="EditItem" 
                OnRowUpdating="UpdateItem" 
                ShowFooter="True">
                            
                <Columns>
               <asp:TemplateField HeaderText="Descripcion" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="350px">
               <ItemTemplate>

               <asp:HyperLink runat="server" ID="Hiperlink" 
               NavigateUrl='<%# Eval("formulario")%>'  
               Text='<%# Eval("descripcion")%>' 
               ForeColor="Blue"></asp:HyperLink>
                            
                            
                            </ItemTemplate>
               <EditItemTemplate>
                        <asp:Label ID="descripcionEditLabel" runat="server" BackColor="Transparent"   Text='<%# Eval("descripcion")%>'/>
                            </EditItemTemplate>
               <FooterTemplate>
                <lib:Input ID="idTipoUI" Width="0px" runat="server" BackColor="Transparent"  ReadOnly="true"  Text='<%# Eval("idInternal")%>'/>
                   <asp:DropDownList ID="descripcionDDL"  Width="200px"  runat ="server">
                   </asp:DropDownList>
               </FooterTemplate>
               </asp:TemplateField>

               <asp:TemplateField HeaderText="Actual" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="350px">
               <ItemTemplate>
               <asp:Label ID="actualLabel" runat="server" BackColor="Transparent"  Text='<%# Eval("actual")%>'/>
               </ItemTemplate>
               <EditItemTemplate>

               <table>
               <tr><td align="right">Actual:</td>
               <td> <asp:Label ID="actualLabel" runat="server" BackColor="Transparent"   Text='<%# Eval("actual")%>'/>
               </td>
               </tr>
               <tr><td align="right">Adicionar</td>
               <td><lib:Input ID="adicionTXT" runat="server" Width="80px" BackColor="Transparent"   Text='<%# Eval("adicion")%>'/></td>
               </tr>
               </table>
               


               
                </EditItemTemplate>
               <FooterTemplate>
               <table>
               <tr>
               <td align="right">Crear UI:</td>
               <td><lib:Input ID="AdicionTXT" runat="server" Width="80px" BackColor="Transparent"   Text='<%# Eval("adicion")%>'/></td>
               </tr>
               </table>
                
                
               </FooterTemplate>
               </asp:TemplateField>

               <asp:CommandField ButtonType="Image" CancelImageUrl="~/Images/cancel.gif" 
                            EditImageUrl="~/Images/edit.gif" ShowEditButton="true" 
                            UpdateImageUrl="~/Images/update.gif" />

             <asp:TemplateField >
                            
                            <ItemTemplate>
                    
                                    </ItemTemplate>
                                    
                                    <FooterTemplate>
                                    
                                    <asp:Button ID="addProvAdd" runat="server" OnClick="AddItem" Text="Añadir" CssClass="ms-crm-List-Header"/>
                                    </FooterTemplate>
                                    </asp:TemplateField>
                                    


                         

                              </Columns>
                              </asp:GridView>

</ContentTemplate>
</asp:UpdatePanel>





